package day06demo;

public class ArrayCopyDemo {
    public static void main(String[] args) {
        int[] arr1 = {1,2,3,4,5,6,7};
        int[] arr2 = {0,0,0,0,0,0,0};

        System.arraycopy(arr1,0,arr2,1,3);
        for (int i = 0; i < arr2.length; i++) {
            System.out.print(arr2[i] + " ");
        }
    }
}
